﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminSite.Master" AutoEventWireup="true" CodeBehind="GenresManager.aspx.cs" Inherits="OLMS.Admin.GenresManager" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">    
    <link href="../Assets/css/input.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div class="pure-form">
        <fieldset>
            <legend>后台管理&nbsp;&nbsp;<i class="fa fa-angle-double-right"></i>&nbsp;&nbsp;音乐类型    
                <asp:LinkButton ID="btnAdd" runat="server"  CssClass="button-default pure-button  tools-button pure-button-primary"  OnClick="btnAdd_Click">添加音乐类型</asp:LinkButton>
            </legend>             
        </fieldset>
    </div>   
     <table class="pure-table pure-table-bordered pure-table-striped">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>音乐类型</th>
                    <th>类型说明</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="repGenresList" runat="server">
                    <ItemTemplate>
                        <tr>
                            <td><%# Eval("GenreId") %></td>
                            <td><%# Eval("Name") %></td>
                            <td><%# Eval("Description") %></td>
                            <td>
                                <asp:LinkButton ID="btnEdit" runat="server" CommandArgument='<%# Eval("GenreId") %>' CssClass="button-default pure-button  pure-button-primary" OnCommand="btnEdit_Command">编辑</asp:LinkButton>
                                <asp:LinkButton ID="btnRemove" runat="server" CommandArgument='<%# Eval("GenreId") %>'  CssClass="button-default pure-button  " OnClientClick="return confirm('确定删除该音乐类型！');" OnCommand="btnRemove_Command">删除</asp:LinkButton>
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
</asp:Content>
